package com.learn.springboot.repository;

import com.learn.springboot.bean.User;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @author dyz
 * @program learning
 * @create 2019-09-20 12:00
 */
public interface UserRepository extends MongoRepository<User, Long> {

    /**
     * 查询 User
     *
     * @param username username
     * @return User
     */
    User findByUsername(String username);

}
